#ifndef RANDOM_H
#define RANDOM_H

#include <QThread>

class Random : public QThread
{
    Q_OBJECT

public:
    static const Random & random();
    int random( int minimum, int maximum ) const;
    int questionValue( int pointPrice ) const;

private:
    Random();
    virtual ~Random();
    virtual void run();

private:
    static int m_distribution[ 5 ][ 5 ];
    static Random * m_random;
};

#endif
